<template>
  <div>
    <tree ref="dataRef" :tree="data"></tree>
    {{ dataRef?.instance }}
  </div>
</template>

<script setup>
import { ref, watch } from "vue"
import data from "./data/data.json"
import Tree from "./tree/index"
const dataRef = ref();

watch(dataRef.value, (val) => {
  console.log('val', val);
}, { deep: true })
</script>